package exception;


import java.awt.*;
import java.io.FileNotFoundException;
import java.io.IOException;

public class ThrowsDemo2 {
    public void dosDemo() throws IOException, AWTException{}
}
class SubClass extends ThrowsDemo2{
    //public void dosDemo() throws IOException,AWTException{}
    //public void dosDemo() {}
    //public void dosDemo() throws IOException{}
    //public void dosDemo() throws FileNotFoundException {}

    //public void dosDemo() throws IllegalAgeException {}  // not
    //public void dosDemo() throws Exception {}  //not
    public void dosDemo() throws RuntimeException {}
}
